<?php
/**
 * Created by PhpStorm.
 * User: chenyulingxi
 * Date: 2020/9/5
 * Time: 16:18
 */

namespace App\Exceptions;

class HuanbaoException extends \Exception
{
    protected $data = [];

    public function __construct(string $message = "", array $data = [])
    {
        $this->data = $data;

        parent::__construct($message);
    }

    public function getData()
    {
        return $this->data;
    }
}